<?php
header("Content-type:text/html; aacharset=utf-8");
require_once'db_conn.php';
$conn;

$sql = "SELECT * FROM usaad";
$result = $conn->query($sql);
//print_r($result);

//echo $result->field_count;
echo '<pre>';
//print_r($result->fetch_array());
$rows = $result->fetch_all(MYSQLI_ASSOC);
print_r($rows);
?>
<?php foreach ($rows as $value):?>
<li><span><?php echo $value["usename"]; ?></span>说：<?php echo $value["content"];?></li>
<?php endforeach ;?>